﻿using Hotel.DAL;
using Hotel.Model;

namespace Hotel.BLL
{
    public class adminBLL
    {

        public adminBLL(adminDAL adminDAL)
        {
            AdminDAL = adminDAL;
        }

        public adminDAL AdminDAL { get; }




        /// <summary>
        /// /管理员登录
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="userpwd">密码</param>
        /// <returns></returns>
        public dynamic Login(string username, string? userpwd)
        {
            try
            {
                var res = AdminDAL.Login(username, userpwd);
                return res;

            }
            catch (Exception ex)
            {

                throw ex;
            }


        }


    



    }
}